package com.qingcloud.adminbackend.entity.equipment;

import cn.hutool.core.util.StrUtil;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * 站点污染数据返回对象
 */
@Data
public class EquipmentBaseDTO implements Serializable {

    @ApiModelProperty(value = "设备编号")
    private String equipmentId;

    @ApiModelProperty(value = "时间")
    private String rtcTime;

    @ApiModelProperty(value = "监测点名称")
    private String stationName;

    @ApiModelProperty(value = "监测点Id")
    private String stationId;

    @ApiModelProperty(value = "监测点区域")
    private String domainDetails;

    @ApiModelProperty(value = "经度")
    private String lng;

    @ApiModelProperty(value = "纬度")
    private String lat;

    @ApiModelProperty(value = "PM2.5", example = "10")
    private String pm25;

    @ApiModelProperty(value = "PM2.5原始值", example = "10")
    private String pm25Orig;

    @ApiModelProperty(value = "生物粒子总数", example = "10")
    private String virus;

    @ApiModelProperty(value = "生物粒子总数原始值", example = "10")
    private String virusOrig;

    @ApiModelProperty(value = "PM10", example = "10")
    private String pm10;

    @ApiModelProperty(value = "PM10原始值", example = "10")
    private String pm10Orig;

    @ApiModelProperty(value = "so2", example = "10")
    private String so2;

    @ApiModelProperty(value = "SO2原始值", example = "10")
    private String so2Orig;

    @ApiModelProperty(value = "NO2", example = "10")
    private String no2;

    @ApiModelProperty(value = "NO2原始值", example = "10")
    private String no2Orig;

    @ApiModelProperty(value = "CO原始值", example = "10")
    private String co;

    @ApiModelProperty(value = "CO原始值", example = "10")
    private String coOrig;

    @ApiModelProperty(value = "O3", example = "10")
    private String o3;

    @ApiModelProperty(value = "O3原始值", example = "10")
    private String o3Orig;

    @ApiModelProperty(value = "CO2", example = "10")
    private String co2;

    @ApiModelProperty(value = "CO2原始值", example = "10")
    private String co2Orig;

    @ApiModelProperty(value = "甲醛", example = "10")
    private String hcho;

    @ApiModelProperty(value = "甲醛原始值", example = "10")
    private String hchoOrig;

    @ApiModelProperty(value = "TVOC", example = "10")
    private String tvoc;

    @ApiModelProperty(value = "TVOC原始值", example = "10")
    private String tvocOrig;

    @ApiModelProperty(value = "温度", example = "10")
    private String temperature;

    @ApiModelProperty(value = "温度原始值", example = "10")
    private String temperatureOrig;

    @ApiModelProperty(value = "湿度", example = "10")
    private String humidity;

    @ApiModelProperty(value = "湿度原始值", example = "10")
    private String humidityOrig;

    @ApiModelProperty(value = "风向", example = "10")
    private String windDirection;

    @ApiModelProperty(value = "风向原始值", example = "10")
    private String windDirectionOrig;

    @ApiModelProperty(value = "风速", example = "10")
    private String windPower;

    @ApiModelProperty(value = "风速原始值", example = "10")
    private String windPowerOrig;

    @ApiModelProperty(value = "气压", example = "10")
    private String pressure;

    @ApiModelProperty(value = "气压原始值", example = "10")
    private String pressureOrig;

    @ApiModelProperty(value = "噪声", example = "10")
    private String noise;

    @ApiModelProperty(value = "噪声原始值", example = "10")
    private String noiseOrig;

    public String getPm25() {
        return pm25 == null ? "--" : pm25;
    }

    public String getCo2() {
        return co2 == null ? "--" : co2;
    }

    public String getVirus() {
        return virus == null ? "--" : virus;
    }

    public String getVirusOrig() {
        return virusOrig == null ? "--" : virusOrig;
    }

    public String getHcho() {
        return hcho == null ? "--" : hcho;
    }

    public String getTvoc() {
        return tvoc == null ? "--" : tvoc;
    }

    public String getPm25Orig() {
        return pm25Orig == null ? "--" : pm25Orig;
    }

    public String getCo2Orig() {
        return co2Orig == null ? "--" : co2Orig;
    }

    public String getHchoOrig() {
        return hchoOrig == null ? "--" : hchoOrig;
    }

    public String getTvocOrig() {
        return tvocOrig == null ? "--" : tvocOrig;
    }

    public String getPm10() {
        return pm10 == null ? "--" : pm10;
    }

    public String getPm10Orig() {
        return pm10Orig == null ? "--" : pm10Orig;
    }

    public String getSo2() {
        return so2 == null ? "--" : so2;
    }

    public String getSo2Orig() {
        return so2Orig == null ? "--" : so2Orig;
    }

    public String getNo2() {
        return no2 == null ? "--" : no2;
    }

    public String getNo2Orig() {
        return no2Orig == null ? "--" : no2Orig;
    }

    public String getCo() {
        return co == null ? "--" : co;
    }

    public String getCoOrig() {
        return coOrig == null ? "--" : coOrig;
    }

    public String getO3() {
        return o3 == null ? "--" : o3;
    }

    public String getO3Orig() {
        return o3Orig == null ? "--" : o3Orig;
    }

    public String getTemperature() {
        return temperature == null ? "--" : temperature;
    }

    public String getTemperatureOrig() {
        return temperatureOrig == null ? "--" : temperatureOrig;

    }

    public String getHumidity() {
        return humidity == null ? "--" : humidity;
    }

    public String getHumidityOrig() {
        return humidityOrig == null ? "--" : humidityOrig;
    }

    public String getWindDirection() {
        return windDirection == null ? "--" : windDirection;
    }

    public String getWindDirectionOrig() {
        return windDirectionOrig == null ? "--" : windDirectionOrig;
    }

    public String getWindPower() {
        return windPower == null ? "--" : windPower;
    }

    public String getWindPowerOrig() {
        return windPowerOrig == null ? "--" : windPowerOrig;
    }

    public String getPressure() {
        return pressure == null ? "--" : pressure;
    }

    public String getPressureOrig() {
        return pressureOrig == null ? "--" : pressureOrig;
    }

    public String getNoise() {
        return noise == null ? "--" : noise;
    }

    public String getNoiseOrig() {
        return noiseOrig == null ? "--" : noiseOrig;
    }

    public String getLng() {
        if (StrUtil.isBlank(lng)) {
            lng = "";
        }
        return lng.indexOf("0.00") > -1 ? "" : lng;
    }

    public String getLat() {
        if (StrUtil.isBlank(lat)) {
            lat = "";
        }
        return lat.indexOf("0.00") > -1 ? "" : lat;
    }

    public String getStationId() {
        return stationId == null ? "" : stationId;
    }

    public String getStationName() {
        return stationName == null ? "" : stationName;
    }

    public String getDomainDetails() {
        return domainDetails == null ? "" : domainDetails;
    }
}
